package com.company.gas.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @author: Li Guangdi
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("设备类")
public class Facility {

    @ApiModelProperty(value = "设备ID",position = 1)
    private String facId;
    @ApiModelProperty(value = "设备名称",position = 2)
    private String facName;
    @ApiModelProperty(value = "所属燃气库ID",position = 3)
    private String baseId;
    @ApiModelProperty(value = "状态",position = 4)
    private Integer status;
    @ApiModelProperty(value = "标志位",position = 5)
    private Integer flag;
    @ApiModelProperty(value = "创建时间",position = 6)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value = "创建人",position = 7)
    private String createBy;
    @ApiModelProperty(value = "修改时间",position = 8)
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifyTime;
    @ApiModelProperty(value = "修改人",position = 9)
    private String modifyBy;


    /*
    public Facility(String facId,String baseId,Integer status,Integer flag,String createBy,String modifyBy){
        this.facId=facId;
        this.baseId=baseId;
        this.status=status;
        this.flag=flag;
        this.createBy=createBy;
        this.modifyBy=modifyBy;
    }
    public Facility(String facId,String baseId,Integer status,String modifyBy){
        this.facId=facId;
        this.baseId=baseId;
        this.status=status;
        this.modifyBy=modifyBy;
    }
    */
}
